this.BX=this.BX||{};this.BX.Landing=this.BX.Landing||{};(function(e,t){"use strict";var n=function(e){babelHelpers.inherits(n,e);function n(){babelHelpers.classCallCheck(this,n);return babelHelpers.possibleConstructorReturn(this,babelHelpers.getPrototypeOf(n).apply(this,arguments))}babelHelpers.createClass(n,[{key:"add",value:function e(t){if(!this.includes(t)){this.push(t)}}},{key:"remove",value:function e(t){var n=this.getIndex(t);if(n>-1){this.splice(n,1)}}},{key:"getIndex",value:function e(t){return this.indexOf(t)}},{key:"contains",value:function e(t){return this.includes(t)}},{key:"isChanged",value:function e(){return this.some(function(e){return e.isChanged()})}},{key:"fetchValues",value:function e(){return this.reduce(function(e,n){if(!n.selector.startsWith("-1")){if(t.Type.isFunction(n.getAttrValue)){e[n.selector]=n.getAttrValue()}else{e[n.selector]=n.getValue()}}return e},{})}},{key:"fetchAdditionalValues",value:function e(){return this.reduce(function(e,n){if(!n.selector.startsWith("-1")&&n.getAdditionalValue){var i=n.getAdditionalValue();if(!t.Type.isNil(i)){e[n.selector]=i}}return e},{})}},{key:"fetchChanges",value:function e(){return this.filter(function(e){return"isChanged"in e&&"getValue"in e&&e.isChanged()})}},{key:"clear",value:function e(){this.splice(0,this.length)}},{key:"toArray",value:function e(){return babelHelpers.toConsumableArray(this)}},{key:"get",value:function e(t){return this.find(function(e){return"".concat(e.id)==="".concat(t)})}},{key:"getByLayout",value:function e(n){return this.find(function(e){return t.Type.isObject(e)&&e.layout===n})}}]);return n}(babelHelpers.wrapNativeSuper(Array));e.BaseCollection=n})(this.BX.Landing.Collection=this.BX.Landing.Collection||{},BX);
//# sourceMappingURL=basecollection.bundle.map.js